//
//  RMnoteTextAttachment.m
//  RMNote
//
//  Created by lanou3g on 16/4/20.
//  Copyright © 2016年 lxf. All rights reserved.
//

#import "RMnoteTextAttachment.h"

@implementation RMnoteTextAttachment

//重写这个方法可以实现图文环绕
-(CGRect)attachmentBoundsForTextContainer:(NSTextContainer *)textContainer proposedLineFragment:(CGRect)lineFrag glyphPosition:(CGPoint)position characterIndex:(NSUInteger)charIndex{

    return CGRectMake(0, 0, kScreenWidth - 50, (kScreenWidth - 50 ) * _scaleImage);


}








@end
